package com.dnjn.happiness.emo.webapi.c3v8.in;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.TypeReference;
import com.dnjn.happiness.emo.webapi.c3v8.C3v8Client;
import com.dnjn.happiness.emo.webapi.c3v8.out.C3v8Out;
import com.dnjn.happiness.emo.webapi.c3v8.out.DeptOut;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Accessors(chain = true)
@Data
public class DeptInfoIn extends C3v8In<DeptOut> implements Serializable {
    private String dptNo;
    private String modifyTime;

    @Override
    public C3v8Out<DeptOut> send() {
        String res = C3v8Client.request("/api/AccessInterface/GetDptInfo",this);
        return JSON.parseObject(res, new TypeReference<C3v8Out<DeptOut>>() {
        });//?
    }

}
